home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / ulog / RCS / ulogInt.h,v < prev   
Encoding:
Text File  |  1988-09-15  |  2.3 KB  |  115 lines

  1. head     1.3;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @ * @;
  6.  
  7.  
  8. 1.3
  9. date     88.09.15.10.17.35;  author douglis;  state Exp;
  10. branches ;
  11. next     1.2;
  12.  
  13. 1.2
  14. date     88.09.13.16.44.56;  author douglis;  state Exp;
  15. branches ;
  16. next     1.1;
  17.  
  18. 1.1
  19. date     88.08.14.15.12.58;  author douglis;  state Exp;
  20. branches ;
  21. next     ;
  22.  
  23.  
  24. desc
  25. @internal declarations for the ulog routines.
  26. @
  27.  
  28.  
  29. 1.3
  30. log
  31. @removed ULOG_FILE_NAME and LASTLOG_FILE_NAME definitions (moved to ulog.h
  32. so programs can access them directly if need be.)
  33. @
  34. text
  35. @/*
  36.  * ulogInt.h --
  37.  *
  38.  *    Declarations of constants and variables shared by the ulog
  39.  *    routines.
  40.  *
  41.  * Copyright 1988 Regents of the University of California
  42.  * Permission to use, copy, modify, and distribute this
  43.  * software and its documentation for any purpose and without
  44.  * fee is hereby granted, provided that the above copyright
  45.  * notice appear in all copies.  The University of California
  46.  * makes no representations about the suitability of this
  47.  * software for any purpose.  It is provided "as is" without
  48.  * express or implied warranty.
  49.  *
  50.  * $ulogInt: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
  51.  */
  52.  
  53. #ifndef _ULOGINT
  54. #define _ULOGINT
  55.  
  56. #include <stdio.h>
  57. #include <syslog.h>
  58. #include <sys/file.h>
  59. #include <sys/errno.h>
  60. #include <string.h>
  61. #include <sys/time.h>
  62. #include <db.h>
  63. #include <host.h>
  64.  
  65.  
  66. /*
  67.  * DEBUG_ULOG controls printing error messages when returning failure
  68.  * conditions.
  69.  */
  70.  
  71. #define DEBUG_ULOG
  72.     
  73. /*
  74.  * Define the length of a record in the database.  Records are fixed-length
  75.  * strings, padded by null characters if necessary.  Each integer in the
  76.  * string is of length MAX_INT_STR_LEN or less (10 digits, plus a sign,
  77.  * plus a  byte for the intervening space).
  78.  */
  79.  
  80. #define MAX_INT_STR_LEN 12
  81. #define ULOG_RECORD_LENGTH ((4 * MAX_INT_STR_LEN) + ULOG_LOC_LENGTH)
  82. #define ULOG_FORMAT_STRING "%d %d %d %d %s"
  83. #define ULOG_ITEM_COUNT 5
  84.  
  85. extern int Ulog_WriteLogEntry();
  86.  
  87. extern int errno;
  88.  
  89. #endif _ULOGINT
  90. @
  91.  
  92.  
  93. 1.2
  94. log
  95. @changed to use ascii representation in database file.
  96. @
  97. text
  98. @a38 3
  99. #define ULOG_FILE_NAME "/sprite/admin/data.new/userLog"
  100. #define LASTLOG_FILE_NAME "/sprite/admin/data.new/lastLog"
  101.  
  102. @
  103.  
  104.  
  105. 1.1
  106. log
  107. @Initial revision
  108. @
  109. text
  110. @d39 14
  111. a52 2
  112. #define ULOG_FILE_NAME "/sprite/admin/data/userLog"
  113. #define LASTLOG_FILE_NAME "/sprite/admin/data/lastLog"
  114. @
  115.